﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kindohm.Life.Library
{
    public class PreyFinder : ProximityFinder
    {
        public Herbivore FindIdealPrey(Board board, Point start, int maxRange)
        {
            BoardObject item = this.FindNearestItem<BoardObject>(board, start, maxRange);
            Herbivore prey = item as Herbivore;
            return prey;
        }

        protected override bool ObjectIsValid<T>(T item)
        {
            return item is Herbivore;
        }
    }
}
